﻿<Window x:Class="PasswordProvider.View.MessageBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="{Binding DisplayName}"
    ToolTip="{Binding ToolTip}"
    AllowsTransparency="True" WindowStyle="None" Background="Transparent"
    SizeToContent="Height" Width="250"
    WindowStartupLocation="CenterOwner">
    
    <Border Margin="10" CornerRadius="5" Background="{DynamicResource DetailActiveBrushDark}">
        <Border.Effect>
            <DropShadowEffect Color="Black" BlurRadius="10"  />
        </Border.Effect>
        <Border Margin="5" BorderBrush="Black" BorderThickness="1" Background="{DynamicResource WindowBrush}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Margin="20" HorizontalAlignment="Center" VerticalAlignment="Center"
                           TextWrapping="Wrap"
                           Text="{Binding Message}" />
                <WrapPanel Grid.Row="1" Margin="20,10" HorizontalAlignment="Right" VerticalAlignment="Bottom">                
                    <Button Name="_cancelButton" Visibility="{Binding CancelCommand.Visibility}"
                            Content="{Binding CancelCommand.DisplayName}"
                            IsDefault="{Binding CancelCommand.IsDefault}"
                            Command="{Binding CancelCommand.Command}"
                            />                
                    <Button Name="_okButton" Margin="10,0,0,0"
                            Visibility="{Binding OkCommand.Visibility}"
                            Content="{Binding OkCommand.DisplayName}"
                            IsDefault="{Binding OkCommand.IsDefault}"
                            Command="{Binding OkCommand.Command}"
                            />
                </WrapPanel>
            </Grid>
        </Border>

    </Border>
        
    
</Window>
